<?php
/**
 * Searcher
 * */
error_reporting(E_ALL);

$path = "E:\source\ZendFramework-1.9.3\library";
set_include_path(get_include_path() . PATH_SEPARATOR . $path);

define('BASEPATH', dirname(__FILE__));
require(BASEPATH.'/config.php');

date_default_timezone_set('Asia/Hong_Kong'); //set default time zone
require_once 'Zend/Registry.php';
require_once(BASEPATH.'/include/cls_mysql.php');


$db = new cls_mysql($config['db']['host'], $config['db']['user'], $config['db']['pass'], $config['db']['data'], $config['db']['charset'], $config['db']['pconnect']);
Zend_Registry::set('db', $db);


Zend_Registry::set('config', $config);